package com.leo.apptest.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.leo.apptest.R;
import com.leo.apptest.model.Person;

public class ParcelableGetActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_parcelable_get);
        Person person = getIntent().getParcelableExtra("person");
        System.out.println("person id "+person.getId());
        System.out.println("person name "+person.getName());
    }
}
